package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lyw
 * @date 2019/07/24
 */
@Data
public class AppntModel implements Serializable {

    private String appntNo;

    @NotBlank(message = "appntName字段不能为空!")
    private String appntName;

    @NotBlank(message = "appntSex字段不能为空!")
    private String appntSex;

    @JSONField(format = "yyyy-MM-dd")
    @NotNull(message = "appntBirthday字段不能为空!")
    private Date appntBirthday;
    @Digits(integer = 3, fraction = 2)
    private BigDecimal appntStature;
    @Digits(integer = 3, fraction = 2)
    private BigDecimal appntAvoirdupois;

    private String nativePlace;
    @NotBlank(message = "idType字段不能为空!")
    private String idType;

    @NotBlank(message = "idNo字段不能为空!")
    private String idNo;

    @JSONField(format = "yyyy-MM-dd")
    private Date idExpDate;

    @JSONField(format = "yyyy-MM-dd")
    // 暂时先不校验
    // @NotNull(message="idStartExpDate字段不能为空!")
    private Date idStartExpDate;

    private String marriage;

    private String smokeFlag;

    private String province;

    private String city;

    private String county;

    private String street;

    private String community;

    private String postalAddress;

    private String zipCode;

    private String homePhone;

    private String homePhoneCode;

    private String mobile;

    private String email;

    private String grpName;

    private String companyAddress;

    private String companyPhone;

    private String companyPhoneCode;

    private String companyZipCode;

    @NotBlank(message = "occupationType字段不能为空!")
    private String occupationType;

    @NotBlank(message = "occupationCode字段不能为空!")
    private String occupationCode;

    private BigDecimal salary;

    private String salaryLevel;

    private String appntCopy;

    private String appntSign;

    private String residentType;

    private String familySalay;

    private String premBudget;

    private String socialInsuFlag;

    private String apntInform;
    /**
     * 黑名单标识
     */
    private int blackListFlag;
    /**
     * 理赔标识
     */
    private int claimFlag;
    /**
     * 白名单标识
     */
    private int isWhite;


    /**
     * 是否调用保盾云 0：不调用；1：调用
     */
    private int isCall;


    /**
     * 百融白名单标识
     */
    private int brWhite;
    /**
     * 阳光白名单
     */
    private int sunWhite;

}
